/**
 * 24/02/2014
 * 
 * IssuetypeBO
 */
package org.cuatrovientos.erp.business;

import java.util.List;

import org.cuatrovientos.erp.dao.IssuetypeDAOInterface;
import org.cuatrovientos.erp.model.Issuetype;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * Holds all the business logic for Issuetype related management
 * @author Javier Tejedor
 */
public class IssuetypeBO implements IssuetypeBOInterface {

	@Autowired
	private IssuetypeDAOInterface issuetypeDAO;

	@Override
	public Issuetype selectById(int id) {
		return issuetypeDAO.selectById(id);
	}

	@Override
	public List<Issuetype> selectAll() {
		return issuetypeDAO.selectAll();
	}

	@Override
	public List<Issuetype> search(String description) {
		return issuetypeDAO.search(description);
	}

	@Override
	public void deleteById(int id) {
		issuetypeDAO.deleteById(id);
	}

	@Override
	public void insert(Issuetype issuetype) {
		issuetypeDAO.insert(issuetype);
	}

	@Override
	public void update(Issuetype issuetype) {
		issuetypeDAO.update(issuetype);
	}
	
}
